HOME |  BACK |  NEXT |  _  WORDLIST |  TOPICS |  _  AUTHORS |  E-MAIL |  _  INDEX | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

WWWE LogoTopic:

<OPTION>

Definition:

Defines the various options available within a <SELECT> ... </SELECT> tag pair for a forms definition, where users must select a value from a predefined list of options. Also provides a mechanism for selecting a default value, if the user chooses no value explicitly.

Attributes:

VALUE="text"

defines the value for a specific <SELECT> option, which equals the text string assigned to VALUE.

SELECTED

defines a default value for a <SELECT> field within a form, should the user choose no value explicitly.

Context:

<OPTION> is legal only within the <SELECT> ... </SELECT> tag pair.

As a singleton tag <OPTION> cannot include any markup inside it.

Suggested style/usage:

For defining a set of scalar values for a <SELECT> field, and for supplying a default for such sets where appropriate.

Example:

Please see the Fill-in Forms tutorial for examples.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

E-Mail: The World Wide Web Encyclopedia at wwwe@tab.com
E-Mail: Charles River Media at chrivmedia@aol.com
Copyright 1996 Charles River Media. All rights reserved.
Text - Copyright © 1995, 1996 - James Michael Stewart & Ed Tittel.
Web Layout - Copyright © 1995, 1996 - LANWrights & IMPACT Online.
Revised -- February 20th, 1996